<?php
/*
 * Functionality now in AdminAuthenticationFilter
 * 
include_once($cfgPaths['lib/admin'].'user.o.inc.php');
include_once($cfgPaths['lib'].'env.o.inc.php');
$env = env::getInstance();
$usr = new user($env->getSession('s_user'),$udba);
$GLOBALS['usr'] = & $usr;

$usr->authenticate($env->getParam('IS_LOGIN_USR'),$env->getParam('IS_LOGIN_PWD'));
if ($env->getParam('IS_LOGOUT')) $usr->logout();
$env->setSession('s_user',$usr->exportUserData());
$s_user = $usr->exportUserData();
*/
$ctx = & base_ApplicationContext::getInstance();
$usr = & $ctx->getUsr();
$s_user = $usr->exportUserData();
?>